import random


# 随机获取一个整数
a = random.random()
print(a)

b = random.randint(1, 10)
print(b)

c = random.choice([1, 2, 3, 4, 5])
print(c)

list1 = [1, 2, 3, 4, 5]
print(list1[random.randint(0, len(list1) - 1)])

# 生成一个随机字母组成的列表
list2 = []
for i in range(10):
    list2.append(chr(random.randint(65, 90)))

print(list2)

from my_package.my_tools import get_random_letter, get_random_string
print(get_random_string(5))
